package com.zxl.common.model.bo.order;

import com.zxl.common.model.vo.goods.GoodsCartVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author zxw
 * @date 2023/4/3
 */
@Data
public class CreateOrderBo {
    @ApiModelProperty(value = "会员id", hidden = true)
    private Integer memberId;

    @ApiModelProperty("地址id")
    @NotNull(message = "地址id为空")
    private Integer addressId;

    @ApiModelProperty("订单价格")
    @NotNull(message = "订单价格为空")
    private BigDecimal orderPrice;

    @ApiModelProperty("商品信息")
    private List<GoodsCartVo> goodsCart;
}
